//
//  COBalancePriceModel.swift
//  CocoProject
//
//  Created by Vill on 2023/11/13.
//

import UIKit

struct COPopupsPriceModel: HandyJSON {
    var response:[COBalanceModel] = [COBalanceModel]()
}


struct COBalancePriceModel: HandyJSON {
    var prices:[COBalanceModel] = [COBalanceModel]()
}

struct COBalanceModel: HandyJSON {
    var id         :Int = 0            //id
    var coins      :Int = 0            //总金币数
    var price      :Double = 0.0       //单价
    var platform   :Int = 0            //平台 0为PayPal 1为Googlepay
    var real       :Int = 0            //实际金币数
    var free       :Int = 0            //赠送金币数
    var realPrice  :Double = 0.0       //原价金额
    var productId  :String? = ""       //商品ID 只有GP平台才有
    var activity   :Int = 0            //是否是活动金币，0否1是
}

struct COIosPayMapModel: HandyJSON {
    var map    :COIosPayModel = COIosPayModel()
}


struct COIosPayModel: HandyJSON {
    var productId  :String? = ""       //商品ID
    var transactionId  :String? = ""       //商品ID
    var status  :Int = 0
}


struct COMyBalanceModel: HandyJSON {
    var coins  :Int = 0
}


struct COPolicyWalletModel: HandyJSON {
    var open:Bool = false
}
